n = int(input('落地的高度为：'))
sum = 0
for i in range(1, 11):
    sum += n
    if i > 1:
        n /= 2

print(sum)
print(n / 2)